package cn.edu.swu.value;

public class value {
    public static void main(String[] args) {
        //float floatNum1 = 1.2;
        float floatNum = 1.2f;  // 字面值默认double,加记号f表示float
        double doubleNum = 1.2; // use double better

        //byte byteNum = 128;
        byte byteNum = 127;// -127~127
        int intNum   = 2100000000;
        long longNum = 21000000000L; // 字面值默认int,加记号L表示long
        boolean booleanValue1 = true;
        boolean booleanValue0 = false;

        char character= 'a';

        String stringValue = "HelloWorld";
        System.out.println(stringValue);

        int max =find_max(1,2);
        System.out.println(max);
    }

    public static int find_max(int a, int b){
        int max = a >= b ? a : b;
        return max;
    }
}
